//
// Created by caedmon on 2017/12/13 0013.
//

#include <stdio.h>

void getMaxFromIntArray(int arr[], int arrLength){
    int maxValue;
    for(int i = 0; i < arrLength; i++){
        if(i == 0){
            maxValue = arr[0];
        }
        if(maxValue < arr[i]){
            maxValue = arr[i];
        }
    }
    printf("The max value is : %d\n",maxValue);
}